import type {QueryOptionsConfig} from '@/consts/models'

export const queryOptions: QueryOptionsConfig[] = [
    {
        label: '字段名称',
        name: 'fieldName',
        type: 'input',
    },
    {
        label: '字段类型',
        name: 'fieldType',
        type: 'select',
        options: [
            {
                label: 'PHONE',
                value: '0'
            },
            {
                label: 'STRING',
                value: '1'
            },
            {
                label: 'LONG',
                value: '2'
            },
            {
                label: 'FLOAT',
                value: '3'
            },
            {
                label: 'INTEGER',
                value: '4'
            },
            {
                label: 'BOOLEAN',
                value: '5'
            },
            {
                label: 'EMAIL',
                value: '6'
            }
        ]
    },
    {
        label: '是否必填',
        name: 'required',
        type: 'select',
        options: [
            {
                label: '是',
                value: '1'
            },
            {
                label: '否',
                value: '0'
            }
        ]
    },
    {
        label: '创建时间',
        name: ['beginTime', 'endTime'],
        type: 'dateRange'
    }
]
